package com.zw.cloud.influxdb.entity;

import lombok.Getter;
import lombok.Setter;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;
import org.influxdb.annotation.TimeColumn;

import java.io.Serializable;
import java.time.Instant;

@Getter
@Setter
@Measurement(name = "monitor_device_run_status_flink")
public class MonitorDeviceRunStatusFlink implements Serializable {

    @TimeColumn
    @Column(name = "time")
    private Instant time;
    /**
     * 机构编号
     */
    @Column(name = "orgCode", tag = true)
    private String orgCode;

    /**
     * 设备id
     */
    @Column(name = "deviceId", tag = true)
    private String deviceId;

    /**
     * 采集时间
     */
    @Column(name = "ctime")
    private Long ctime;

    /**
     * 设备编码
     */
    @Column(name = "deviceCode")
    private String deviceCode;

    /**
     * 设备名称
     */
    @Column(name = "deviceName")
    private String deviceName;

    /**
     * 结束时间
     */
    @Column(name = "endTime")
    private Long endTime;

    /**
     * 开始时间
     */
    @Column(name = "startTime")
    private Long startTime;

    /**
     * 流转卡号
     */
    @Column(name = "icCard")
    private String icCard;

    /**
     * iotCode
     */
    @Column(name = "iotCode")
    private String iotCode;

    /**
     * 1:运行、0：停机
     */
    @Column(name = "runStatus")
    private String runStatus;

}
